(global.webpackJsonp = global.webpackJsonp || []).push([ [ "question/detail/wrongBook" ], {
    3180: function(t, e, n) {
        (function(t) {
            Object.defineProperty(e, "__esModule", {
                value: !0
            }), e.default = void 0;
            var o = n("a71e"), r = n("26cb"), i = (n("a71e"), n("8434")), a = n("b806"), c = n("9b63"), u = (function(t) {
                t && t.__esModule;
            }(n("03b8")), n("db8f"), n("4771"));
            function s(t) {
                return function(t) {
                    if (Array.isArray(t)) return f(t);
                }(t) || function(t) {
                    if ("undefined" != typeof Symbol && Symbol.iterator in Object(t)) return Array.from(t);
                }(t) || function(t, e) {
                    if (t) {
                        if ("string" == typeof t) return f(t, e);
                        var n = Object.prototype.toString.call(t).slice(8, -1);
                        return "Object" === n && t.constructor && (n = t.constructor.name), "Map" === n || "Set" === n ? Array.from(t) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? f(t, e) : void 0;
                    }
                }(t) || function() {
                    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
                }();
            }
            function f(t, e) {
                (null == e || e > t.length) && (e = t.length);
                for (var n = 0, o = new Array(e); n < e; n++) o[n] = t[n];
                return o;
            }
            function l(t, e) {
                var n = Object.keys(t);
                if (Object.getOwnPropertySymbols) {
                    var o = Object.getOwnPropertySymbols(t);
                    e && (o = o.filter(function(e) {
                        return Object.getOwnPropertyDescriptor(t, e).enumerable;
                    })), n.push.apply(n, o);
                }
                return n;
            }
            function d(t, e, n) {
                return e in t ? Object.defineProperty(t, e, {
                    value: n,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : t[e] = n, t;
            }
            var p = {
                computed: function(t) {
                    for (var e = 1; e < arguments.length; e++) {
                        var n = null != arguments[e] ? arguments[e] : {};
                        e % 2 ? l(Object(n), !0).forEach(function(e) {
                            d(t, e, n[e]);
                        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : l(Object(n)).forEach(function(e) {
                            Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e));
                        });
                    }
                    return t;
                }({}, (0, r.mapGetters)([ "configs", "user", "mainColor", "iphoneXStyle", "isIphone" ])),
                data: function() {
                    return {
                        Lists: [],
                        loadingOk: !1,
                        isRequest: !1,
                        page: 1,
                        pageSize: 10,
                        isShow: !1
                    };
                },
                created: function() {},
                onShow: function() {
                    var t = this;
                    (0, a.init)(this).then(function(e) {
                        t.isBar = e;
                    }), (0, u.getStorageSync)("userInfo").then(function(e) {
                        var n = JSON.parse(e.data);
                        (0, o.isEmpty)(n.id) || (t.user_id = n.id), t.getBookList();
                    }, function(e) {
                        t.getBookList();
                    });
                },
                methods: {
                    enterDetail: function(t) {
                        (0, i.route)({
                            url: "/question/detail/wrongDetail",
                            type: 1,
                            data: {
                                id: t.id,
                                type: 1
                            }
                        });
                    },
                    del: function(e) {
                        var n = this;
                        t.showModal({
                            confirmText: "确认",
                            cancelText: "取消",
                            showCancel: !0,
                            content: "请确认是否移除错题本?",
                            success: function(t) {
                                if (t.confirm) {
                                    var o = {
                                        id: e
                                    };
                                    (0, c.delWrongBook)(o).then(function(t) {
                                        n.$toast("移除成功", "none"), n.page = 1, n.Lists = [], n.getBookList();
                                    });
                                }
                            }
                        });
                    },
                    getBookList: function() {
                        var e = this, n = this;
                        this.loadingOk = !1, this.isRequest = !1;
                        var o = {
                            page: this.page,
                            pagesize: this.pageSize,
                            user_id: this.user_id
                        };
                        (0, c.myWrongBookList)(o).then(function(o) {
                            var r = n.Lists, i = o.list;
                            r && 1 != n.page && (i = [].concat(s(r), s(i))), n.Lists = i, e.loadingOk = !0, 
                            e.isRequest = 0 == n.Lists.length, t.stopPullDownRefresh(), e.isShow = !0;
                        });
                    }
                },
                onPullDownRefresh: function() {
                    this.page = 1, this.Lists = [], this.getBookList();
                },
                onReachBottom: function() {
                    this.page++, this.getBookList();
                }
            };
            e.default = p;
        }).call(this, n("543d").default);
    },
    "49d0": function(t, e, n) {
        (function(t) {
            n("1067"), o(n("66fd"));
            var e = o(n("6a1d"));
            function o(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = n, t(e.default);
        }).call(this, n("543d").createPage);
    },
    "4e90": function(t, e, n) {
        n.r(e);
        var o = n("3180"), r = n.n(o);
        for (var i in o) "default" !== i && function(t) {
            n.d(e, t, function() {
                return o[t];
            });
        }(i);
        e.default = r.a;
    },
    6300: function(t, e, n) {
        var o = n("ce57");
        n.n(o).a;
    },
    "6a1d": function(t, e, n) {
        n.r(e);
        var o = n("8eb8"), r = n("4e90");
        for (var i in r) "default" !== i && function(t) {
            n.d(e, t, function() {
                return r[t];
            });
        }(i);
        n("6300");
        var a = n("f0c5"), c = Object(a.a)(r.default, o.b, o.c, !1, null, "6a527098", null, !1, o.a, void 0);
        e.default = c.exports;
    },
    "8eb8": function(t, e, n) {
        n.d(e, "b", function() {
            return o;
        }), n.d(e, "c", function() {
            return r;
        }), n.d(e, "a", function() {});
        var o = function() {
            this.$createElement;
            this._self._c;
        }, r = [];
    },
    ce57: function(t, e, n) {}
}, [ [ "49d0", "common/runtime", "common/vendor" ] ] ]);